<?php
  
  require "[system_path]system/framework.php";  
  
  $contentId = $_REQUEST['id'];
  
  
  content::deleteContent($contentId);
  
  
  //db::deleteData("content", $contentId);
  
  
  //content::deleteContent()
  
  
  //$redirect = "[php_property:href]";
  $redirect = config::$baseUrl;
    
      
      if ($redirect == "") $redirect = $_SERVER['HTTP_REFERER'];
      header("Location: $redirect");   

?>